/*
 * @Author: luoqi
 * @Date: 2022-04-12 09:40:39
 * @LastEditors: luoqi
 * @LastEditTime: 2022-04-12 09:40:40
 * @Description: 
 */
/*
 * @Date: 2022-04-06 10:52:16
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2022-04-12 09:02:35
 * @FilePath: \pay\src\API\index.js
 * @Description: 
 * 
 */
import axios from './../util/axios'

//代付后台卡商/商户配置/卡商列表接口
export const getCard = (data) => {
        return axios({
            url: 'admin/sh_peiZhi/selectAllShangHu',
            method: 'get',
            params: data
        })
    }
    //代付后台/商户配置/查询接口
export const getCardsearch = (data) => {
        return axios({
            url: 'admin/sh_peiZhi/selectByCondition',
            method: 'get',
            params: data
        })
    }
    //代付后台/商户配置/商户的已有支付配置接口
export const getCardPremata = (data) => {
        return axios({
            url: 'admin/sh_peiZhi/selectAllFeiLvConfig',
            method: 'get',
            params: data
        })
    }
    //代付后台/商户配置/编辑接口
export const postCardCredact = (data) => {
        return axios({
            url: 'admin/sh_peiZhi/updFeiLvConfig',
            method: 'post',
            data: data,
            headers: {
                "Content-Type": "application/json",
            },
        })
    }
    //代付后台/商户配置/新增接口
export const postCardAddbtn = (data) => {
        return axios({
            url: 'admin/sh_peiZhi/addFeiLvConfig',
            method: 'post',
            data: data,
            headers: {
                "Content-Type": "application/json",
            },
        })
    }
    //代付后台/商户配置/新增接口
export const postCardDelcfg = (data) => {
        return axios({
            url: 'admin/sh_peiZhi/delFeiLvConfig',
            method: 'post',
            params: data,
            headers: {
                "Content-Type": "application/json",
            },
        })
    }
    //代付后台/商户列表/查询所有卡商信息接口
export const getCardList = (data) => {
        return axios({
            url: 'adminhl/kslb/selectAllForPage',
            method: 'get',
            params: data,
        })
    }
    //代付后台/商户列表/检测用户名是否存在接口
export const getCardListDetection = (data) => {
        return axios({
            url: 'adminhl/kslb/selectKsName',
            method: 'get',
            params: data,
        })
    }
    //代付后台/商户列表/开户接口
export const postCardListFsubmit = (data) => {
        return axios({
            url: 'adminhl/kslb/insertKs',
            method: 'post',
            data: data,
            headers: {
                "Content-Type": "application/json",
            },
        })
    }
    //代付后台/商户列表/修改接口
export const postCardListAamend = (data) => {
        return axios({
            url: 'adminhl/kslb/updateKs',
            method: 'post',
            data: data,
            headers: {
                "Content-Type": "application/json",
            },
        })
    }
    //代付后台/商户列表/点击卡商下的资金操作时调用显示下拉菜单接口
export const getCardListSelect = (data) => {
        return axios({
            url: 'adminhl/kslb/selectKsZb',
            method: 'get',
            data: data,
        })
    }
    //代付后台/商户列表/资金操作提交接口
export const getCardListOperation = (data) => {
        return axios({
            url: 'adminhl/kslb/updateKsJinE',
            method: 'post',
            data: data,
            headers: {
                "Content-Type": "application/json",
            },
        })
    }
    //代付后台/商户列表/删除接口
export const postCardListDelete = (data) => {
        return axios({
            url: 'adminhl/kslb/deleteKs',
            method: 'post',
            params: data,
            headers: {
                "Content-Type": "application/json",
            },
        })
    }
    //代付后台//卡商明细/查询接口
export const getCardDetails = (data) => {
        return axios({
            url: 'adminhl/ksmx/selectKsmx',
            method: 'get',
            params: data,
        })
    }
    //代付后台/代付订单/代付订单接口
export const getCardOrder = (data) => {
        return axios({
            url: 'admin/df_dingDan/selectAllDaiFuDingDan',
            method: 'get',
            params: data,
        })
    }
    //代付后台/代付订单/查询所有卡商
export const getCardOrderAllcard = (data) => {
    return axios({
        url: 'admin/df_dingDan/selectAllKaShang',
        method: 'get',
        params: data,
    })
}
export const getCardOrderAlluser = (data) => {
        return axios({
            url: 'admin/df_dingDan/selectAllShangHu',
            method: 'get',
            params: data,
        })
    }
    //代付后台/代付订单/查询所有订单状态
export const getCardOrderState = (data) => {
        return axios({
            url: 'admin/df_dingDan/selectAllZhuangTai',
            method: 'get',
            params: data,
        })
    }
    //代付后台/代付订单/查询接口
export const getCardOrderSearch = (data) => {
    return axios({
        url: 'admin/df_dingDan/selectDaiFuDingDanByCondition',
        method: 'get',
        params: data,
    })
}